import util from "@/utils/request";
let $axios = util
const getFundsList = (params) => {
    return $axios({
        url: '/api/getFundsList',
        method: 'get',
        params
    })
}
const saveFunds = (data) => {
    return $axios({
        url: '/api/addFunds',
        method: 'post',
        data
    })
}
const getFundsDetail = (data) => {
    return $axios({
        url: `/api/queryFundsDetail/${data}`,
        method: 'get',
    })
}
const editFunds = (data) => {
    return $axios({
        url: '/api/updateFunds',
        method: 'put',
        data
    })
}
const delFunds = (data) => {
    return $axios({
        url: `/api/deleteFunds/${data}`,
        method: 'delete',
    })
}
export default {
    getFundsList,
    saveFunds,
    getFundsDetail,
    editFunds,
    delFunds
}